package com.example.reference_book.controller;

import com.example.reference_book.entity.Book;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("BookRefScore")
public interface BookRefScore {

    @GetMapping("/{userid}")
    Map<Integer, List<Book>> refscore(@PathVariable("userid") Integer userid);

}
